<% include ../layout/oa_header.ejs %>

    <section id="tutorial" class="ftco-section ftco-work">
    	<div class="container-fluid">
    		<div class="row justify-content-center mb-5 pb-5">
          <div class="col-md-7 text-center heading-section ftco-animate">
            <h2 class="mb-2">下载</h2>
            <span class="subheading" style="margin-top:20px;">点击下边的连接，下载最新的EasydOA项目</span>
          </div>
        </div>
        <div class="row justify-content-center mb-5 pb-5">
        	<div class="col-md-12 ftco-animate">
        		<div class="work-entry">
              <img src="/image/xiazai.png" />
              <p><a class="downloadZip" id="https://e-d.oss-cn-beijing.aliyuncs.com/download/EasydOA.zip" href="#">EasydOA - v1.0版本</a></p>
              <p style="border-top:1px solid #eee;width:20%;margin:0px auto;margin-top:30px;padding-top:20px;">已下载：<%= dataDetail.p_down_count %></p>
              <p style="margin-top:20px;"><a target="_blank" style="text-decoration: underline;" href="http://www.ed100.cn/technologyArticleDetail?a_id=5">文字版安装教程</a></p>
        		</div>
        	</div>
        	
        </div>
    	</div>
    </section>

    <section class="ftco-section-parallax">
      <div class="parallax-img d-flex align-items-center">
        <div class="container">
          <div class="row d-flex justify-content-center">
            <div class="col-md-7 text-center heading-section heading-section-white ftco-animate">
              <h2>有什么疑问可以加入我们一起学习</h2>
              <p>免费开源项目，只为让开发更加便捷，如果你想了解更多或者想取得联系欢迎联系我们</p>
            </div>
          </div>
        </div>
      </div>
		</section>
    <style> 
      .work-entry {
        width:100%;
        height:200px;
        text-align:center;
        margin-bottom:150px;
      }

      .work-entry img {
        width:400px;
        height:auto;
        margin-top:-100px;
      }
    </style>
    <% include ../layout/oa_footer.ejs %>
    <script>
      $(function () {
        $(".downloadZip").click(function () {
            var downloadURL = $(this).attr("id");
            var a = document.createElement('a');
            a.setAttribute('href', downloadURL);
            a.setAttribute('id', 'startTelMedicine');
            if (document.getElementById('startTelMedicine')) {
                document.body.removeChild(document.getElementById('startTelMedicine'));
            }
            document.body.appendChild(a);
            a.click();

            //调用下载数量更新接口
            HTTP.get("/user/updateDownload?p_id=8", (rs) => {})
        })
    })
    </script>